package com.example.guiguihomemedical.service;

import com.example.guiguihomemedical.entity.Record;
import com.example.guiguihomemedical.entity.Servicepack;
import com.example.guiguihomemedical.entity.Signing;
import com.example.guiguihomemedical.entity.dto.FamilyarChooseService;
import com.example.guiguihomemedical.entity.dto.RecordList;
import com.example.guiguihomemedical.entity.dto.SigningAdd;
import com.example.guiguihomemedical.entity.dto.Signingdetail;
import org.springframework.web.multipart.MultipartFile;

import javax.transaction.Transactional;
import java.text.ParseException;
import java.util.List;

public interface SigningService {
    void delete(String id);
    void deleteTrueId(int id);

    List<List<RecordList>> SearchFamilySigningAll(List<FamilyarChooseService> familyarChooseServiceList, String staTime, String endTime) throws ParseException;

    Signing getById(String id);

    void add(Signing signing);
    void addAll(SigningAdd signingAdd, MultipartFile uploadFile, List<Servicepack> servicepackList) throws ParseException;
    void update(Signing signing);
    List<Record> getRecordByNowServing();
    List<Record> searchRecordByNowServing(Integer PageBegin,Integer PageSize,String searchString);
    Signing getByIdOrserByendtime(String id);
    Signing getByIdcardNowServing(String idcard);
    List<Signing> getAll();

    void addFamilySigningAll(MultipartFile uploadFile, List<FamilyarChooseService> familyarChooseServiceList, String staTime, String endTime, String doctorId) throws ParseException;

    List<Signing> getAllstate(String IdCard,String staTime, String endTime) throws ParseException;

    Signingdetail getSigningdetail(int signingId);
}
